﻿<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Клуб го "Нигири"</title>

    <!-- Bootstrap core CSS -->
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Content/Site.css" rel="stylesheet">

    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">

    <!-- include summernote css/js-->
    <link href="/summernote/dist/summernote.css" rel="stylesheet">

    <!-- FIXME -->
    <style>   
         .lbl-center {
            padding-top: 7px;
        }

        .btn-file {
            position: relative;
            overflow: hidden;
        }

            .btn-file input[type=file] {
                position: absolute;
                top: 0;
                right: 0;
                min-width: 100%;
                min-height: 100%;
                font-size: 999px;
                text-align: right;
                filter: alpha(opacity=0);
                opacity: 0;
                background: red;
                cursor: inherit;
                display: block;
            }

        input[readonly] {
            background-color: white !important;
            cursor: text !important;
        }
    </style>

    <script src="//code.jquery.com/jquery-1.9.1.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body role="document">

    <!-- Fixed navbar -->
    @Html.Partial("_Navbar")
    <div class="container">
        <div class="row">
            <div class="col-md-7 col-md-offset-1" id="main">
                <div>@RenderBody()</div>
            </div>
            <div class="col-sm-3" id="sidebar">
                @Html.Partial("_SideBar")
            </div>
        </div>
    </div>


    <!-- TODO: Relplace it -->

    <script type="text/javascript">
         

        $(document).ready(function () {
            $('#summernote').summernote();

            $('#summernote').summernote({
                onImageUpload: function (files, editor, welEditable) {
                    data = new FormData();
                    data.append("file", files[0]);

                    $.ajax({
                        type: "POST",
                        cache: false,
                        contentType: "multipart/form-data",
                        processData: false,
                        data: JSON.stringify(files[0]),
                        url: "/UploadFiles/ImageJson",
                        success: function (data) {
                            //editor.insertImage(welEditable, url);
                        }
                    });
                    console.log('image upload:', data);
                }
            });
        });
    </script>

    <script src="/summernote/dist/summernote.min.js"></script>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/Eidogo/js/all.compressed.js"></script>
</body>
</html>

